﻿using System;
using UnityEngine;

// Token: 0x020001C0 RID: 448
public class CutAct_Position : CutAction
{
	// Token: 0x06000B9A RID: 2970 RVA: 0x00043C94 File Offset: 0x00041E94
	public CutAct_Position(CutScene cutScene) : base(cutScene, CUTACT.POSITION)
	{
	}

	// Token: 0x06000B9B RID: 2971 RVA: 0x00043CA0 File Offset: 0x00041EA0
	public override object Clone()
	{
		return new CutAct_Position(this.cutScene);
	}

	// Token: 0x06000B9C RID: 2972 RVA: 0x00043CB0 File Offset: 0x00041EB0
	public override void Load(TagText.Element element, int order)
	{
		base.Load(element, order);
		Vector3 zero = Vector3.zero;
		element.GetVal(ref this.chara, "chara", 0);
		TagTextUtility.Load_Vector3(ref this.pos, element, "pos", 0);
		if (TagTextUtility.Load_Vector3(ref zero, element, "euler", 0))
		{
			this.rot = Quaternion.Euler(zero);
		}
		else
		{
			TagTextUtility.Load_Quaternion(ref this.rot, element, "rot", 0);
		}
	}

	// Token: 0x06000B9D RID: 2973 RVA: 0x00043D28 File Offset: 0x00041F28
	public override void Save(TagText.Element element)
	{
		base.Save(element);
		element.AddAttribute("chara", this.chara);
		TagTextUtility.Save_Vector3(element, "pos", this.pos);
		TagTextUtility.Save_Quaternion(element, "rot", this.rot);
	}

	// Token: 0x06000B9E RID: 2974 RVA: 0x00043D64 File Offset: 0x00041F64
	public override void Action(bool skip)
	{
		Human human = this.cutScene.GetHuman(this.chara);
		human.transform.position = this.pos;
		human.transform.rotation = this.rot;
	}

	// Token: 0x04000BCE RID: 3022
	public string chara;

	// Token: 0x04000BCF RID: 3023
	public Vector3 pos;

	// Token: 0x04000BD0 RID: 3024
	public Quaternion rot;
}
